package livro;

public class Point {
  protected int x,y; //coordenadas de point.
  
public Point() {
  setPoint(0, 0);	  
}

public Point(int x, int y) {
  setPoint(x, y);	
}

public void setPoint(int x, int y){
  setX(x);
  setY(y);
}

public int getX() {
	return x;
}

private void setX(int x) {
	this.x = x;
}

public int getY() {
	return y;
}

private void setY(int y) {
	this.y = y;
}

public String toString() {
  return "[" + x + " , " + y + "] ";	
}
  
  
}
